import axios from 'axios'

// 分类--数据
const getClassifyList = () => {
    return axios.get('https://api-hmugo-web.itheima.net/api/public/v1/categories')
}

// 商品列表搜索
const goodsSearch = (params) => {
    return axios.get('https://api-hmugo-web.itheima.net/api/public/v1/goods/search', {
        params
    })
}


export {
    getClassifyList,
    goodsSearch
}